package net.ericaro.neojavagen.blocks;

/**
 * <b>AssertWithMessage</b> ::= "assert" <{@link net .ericaro .neojavagen .expressions .Expression Expression}> ":" <
 * {@link net .ericaro .neojavagen .expressions .Expression Expression}> ";"
 * 
 * @author eric@ericaro.net
 */
public class AssertWithMessage extends net.ericaro.neojavagen.JavaPartComposition {
	private net.ericaro.neojavagen.expressions.Expression expression1;

	private net.ericaro.neojavagen.expressions.Expression expression2;

	public AssertWithMessage(net.ericaro.neojavagen.expressions.Expression expression1, net.ericaro.neojavagen.expressions.Expression expression2) {
		super();
		this.expression1 = expression1;
		this.expression2 = expression2;
	}

	public net.ericaro.neojavagen.expressions.Expression getExpression1() {
		return expression1;
	}

	public net.ericaro.neojavagen.expressions.Expression getExpression2() {
		return expression2;
	}

	public void setExpression1(net.ericaro.neojavagen.expressions.Expression expression1) {
		this.expression1 = expression1;
	}

	public void setExpression2(net.ericaro.neojavagen.expressions.Expression expression2) {
		this.expression2 = expression2;
	}

	@Override
	public java.lang.String toString() {
		return print("assert", expression1, ":", expression2, ";");
	}
}
